package com.foreknow.service;

import com.foreknow.model.Admin;

import java.sql.SQLException;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-08-05 14:12
 */
public interface AdminService {

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    public Admin login(String username,String password);

    /**
     * 用户注册
     */

    public boolean register(Admin admin);


    /**
     * 查询所有admin中的数据
     * @return
     */
    public List<Object> showAll() throws SQLException;








}
